CXX=g++
SRC=douglas_peucker.cc
EXE=polygons
CPPFLAGS=-W -Wall -O3 -DNDEBUG
INCLUDES=-I../olena/milena

all :	build

build :	$(SRC:.cc=.o)
	$(CXX) $(CPPFLAGS) $(INCLUDES) -o $(EXE) $^

%.o :	%.cc
	$(CXX) $(INCLUDES) $(CPPFLAGS) $(INCLUDES) -c -o $@ $<

clean :
	rm -rf *.o *~ *#

distclean : clean
	rm $(EXE)